package com.vader.springcloud.openFeigen;

import com.vader.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author kaivader
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface FeignService {

    /**
     * 查询方法
     * @param id
     * @return
     */
    @GetMapping("consumer/query/{id}")
    CommonResult<Object> query(@PathVariable("id") Long id);

}
